import httpInstance from '@/utils/http.js';

export const getDetail =(id)=>{
  return httpInstance({
    url: "/goods",
    params:{
      id: id
    }
  })
}

export const  getHotGoodsApI=({id,type,limit=3})=>{
  return httpInstance({
    url: "/goods/hot",
    params:{
      id,
      type,
      limit
    }
  })
} 